{layout  name="public:layout" /}
<div class="content">

    <div class="header">

        <h1 class="page-title">参数设置</h1>
    </div>

    <ul class="breadcrumb">
        <li><a href="#">系统管理</a> <span class="divider">/</span></li>

        <li class="active">参数设置</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="btn-toolbar">
                &nbsp;
                <!--                <a href="#myModal" data-toggle="modal1" class="btn">Delete</a>-->
                <div class="btn-group">
                </div>
            </div>
            <div class="well" style="margin-top: -15px;">
                <!--                <ul class="nav nav-tabs">
                                    <li class="active"><a href="#home" data-toggle="tab">个人信息</a></li>
                                    <li><a href="#profile" data-toggle="tab">修改密码</a></li>
                                </ul>-->
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <form id="form" name="form" method="post" enctype="multipart/form-data" onsubmit="return false">
                            <label>汇率：</label>
                            <input  name="exchange_rate" type="text" value="{$list.exchange_rate}" class="input-xlarge" style="width: 80px;"> %
                            <hr>


                            <label>手续费：</label>
                            <input  name="service_charge" type="text" value="{$list.service_charge}" class="input-xlarge" style="width: 80px;">
                            <hr>
                            <div>
                                <button class="btn btn-primary save1"><i class="icon-save"></i> {$Think.lang.baocun}</button>
                            </div>
                        </form>

                        <script>
                            $(".save1").click(function () {
                                var formData = new FormData(document.getElementById("form"));//表单id
                                $.ajax({
                                    type: "post",
                                    url: "{:url('admin/Notice/save')}",
                                    data: formData,
                                    async: false,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    dataType: 'json',
                                    success: function (data) {
                                        layer.load(1, {
                                            shade: [0.1, ''], //0.1透明度的白色背景
                                            time: 500
                                        });
                                        setTimeout(function () {
                                            layer.msg(data.message, {time: 1000});
                                        }, 500);
                                    }
                                })
                            })
                        </script>
                    </div>

                </div>

            </div>
            <footer>
                <hr>

                <p class="pull-right">Collect from <a href="#" title="网页模板" >sxddd</a></p>


                <p>&copy; 2019 <a href="#" >Portnine</a></p>
            </footer>

        </div>
    </div>
</div>